package com.chester.eurekaconsumerfeignrabbitmq.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author chester7cheng
 */
@FeignClient(name = "eureka-provider", fallback = HelloClientHystrix.class)
public interface HelloClient {

    /**
     * hello word
     * @param name hello word
     * @return hello word
     */
    @GetMapping("/hello/")
    String hello(@RequestParam(value = "name") String name);

    /**
     * feign
     * @return feign
     */
    @GetMapping("/hello/")
    String feign();
}
